//
//  DiscoberController.m
//  oc微博
//
//  Created by 代亚洲 on 16/4/18.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "DiscoberController.h"
#import "Easchview.h"
#import "UIView+JACKFrameExt.h"

@interface DiscoberController ()

@end

@implementation DiscoberController

- (void)viewDidLoad {
    [super viewDidLoad];
//调用类方法加载搜索框
    Easchview *easch = [Easchview nationalFlagWithXib];
//    设置搜索框的宽度
    easch.w = [UIScreen mainScreen].bounds.size.width;
//    设置搜索框的位置 导航控制器的titleview
    self.navigationItem.titleView = easch;
    NSLog(@"%@",easch);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
